package com.lxw.study.behavioral.responsibilitychain.unionspring;

import org.springframework.stereotype.Component;

@Component
public class HandlerA implements IHandler {
    @Override
    public void handle() {
        System.out.println("HandlerA handle()");
    }

    @Override
    public boolean support(String name) {
        System.out.println("a");
        return "a".equals(name);
    }
}

